package com.vrv.app.cyberspace.modules.sys.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelTarget;

import java.io.Serializable;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author sm
 * @since 2017-12-15
 */
@TableName("INFRASTRUCTURE_INFORMATION_TABLE")
@ExcelTarget("infrastructureInformationTable")
public class InfrastructureInformationTable extends Model<InfrastructureInformationTable> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;
    /**
     * 运营单位
     */
    @Excel(name = "运营单位")
    private String unit;
    /**
     * 责任人
     */
    @Excel(name = "责任人")
    private String leadingOfficial;
    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String contactPhone;
    /**
     * IP
     */
    @Excel(name = "IP")
    private String ip;
    /**
     * 域名
     */
    @Excel(name = "域名")
    private String domainName;
    /**
     * URL
     */
    @Excel(name = "URL")
    private String url;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getLeadingOfficial() {
        return leadingOfficial;
    }

    public void setLeadingOfficial(String leadingOfficial) {
        this.leadingOfficial = leadingOfficial;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDomainName() {
        return domainName;
    }

    public void setDomainName(String domainName) {
        this.domainName = domainName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "InfrastructureInformationTable{" +
                ", name=" + name +
                ", unit=" + unit +
                ", leadingOfficial=" + leadingOfficial +
                ", contactPhone=" + contactPhone +
                ", ip=" + ip +
                ", domainName=" + domainName +
                ", url=" + url +
                "}";
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof InfrastructureInformationTable)) {
            return false;
        }
        InfrastructureInformationTable userTable = (InfrastructureInformationTable) obj;
        return this.toString().equals(userTable.toString());
    }

    @Override
    public int hashCode() {
        return toString().hashCode();
    }

    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer size;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
